package com.thirteengroup.casemg.service.impl;

import com.thirteengroup.casemg.Mapper.ddetailMapper;
import com.thirteengroup.casemg.domain.ddetail;
import com.thirteengroup.casemg.service.IDdetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ddetailService implements IDdetailService {

    @Autowired
    private ddetailMapper ddetailMapper;
    @Override
    public List<ddetail> queryAll(String dmname) {

        List<ddetail> ddetailList=ddetailMapper.selectAll(dmname);
        return ddetailList;
    }

    @Override
    public ddetail queryOne(Integer id) {
        ddetail ddetail= ddetailMapper.selectOne(id);
        return ddetail;
    }


}
